<?PHP
include 'mysql.php';
include 'functions.php';

session_start();
if(DoLogin($_POST['username'],$_POST['password'])){
	//Login lyckas, skicka till startsida.
	header('Location:/');
}else{
	//Misslyckat, skicka till errosida.
	header('Location:/?a=login');
}
?>